import Vue from "vue";
import App from "./App";
import http from "./common/http.js";
import util from "./common/util.js";
import yyutil from "./common/yyutil.js";
import message from "./common/message.js";
import store from "./common/store.js";
import common from "./common/common.js";
import pay from "./common/pay.js";
import location from "./common/location.js";
import constant from "./common/constant.js";
import api from "./common/api.js";

Vue.config.productionTip = false;
Vue.prototype.ht = http;
Vue.prototype.api = api;
Vue.prototype.util = util;
Vue.prototype.yyutil = yyutil;
Vue.prototype.common = common;
Vue.prototype.message = message;
Vue.prototype.pay = pay;
Vue.prototype.store = store;
Vue.prototype.location = location;
Vue.prototype.constant = constant;

App.mpType = "app";

import cuCustom from "./components/cu-custom.vue";
Vue.component('cu-custom',cuCustom);

import bgVideo from "./components/bg-video.vue";
Vue.component('bg-video',bgVideo);

import coverUpdate from "./components/cover-update.vue";
Vue.component('cover-update',coverUpdate);

import yyzzUpdate from "./components/yyzz-update.vue";
Vue.component('yyzz-update',yyzzUpdate);

import imgUpdate from "./components/img-update.vue";
Vue.component('img-update',imgUpdate);

import zqsSelect from "./components/zqs-select/zqs-select.vue";
Vue.component('zqs-select',zqsSelect);

import batreepicker from "./components/ba-tree-picker/ba-tree-picker.vue";
Vue.component('ba-tree-picker',batreepicker);

import xiaomiaogugooddatepicker from "./components/xiaomiaogu-good-date-picker/xiaomiaogu-good-date-picker.vue";
Vue.component('xiaomiaogu-good-date-picker',xiaomiaogugooddatepicker);

import SimpleEditor from '@/components/zhangyuhao-simple-editor/zhangyuhao-simple-editor.vue';
Vue.component('simple-editor',SimpleEditor);

import rllr from "./components/rllr.vue";
Vue.component('rllr',rllr);

// #ifdef H5
let jweixin = require("./components/jweixin-module/index.js");
console.log(jweixin);
Vue.prototype.jweixin = jweixin;


// #endif

const app = new Vue({
    ...App
});
app.$mount();
